package com.zxy.zxyrpc.fault.tolerant;

import com.zxy.zxyrpc.model.RpcResponse;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

/**
 * 静默处理 - 容错策略
 *
 * @author zxy
 * @since 2025/5/29
 **/
@Slf4j
public class FailSafeTolerantStrategy implements TolerantStrategy {
    @Override
    public RpcResponse doTolerant(Map<String, Object> content, Exception e) {
        log.info("静默处理异常", e);
        return new RpcResponse();
    }
}
